<?xml version="1.0" encoding="utf-8" ?>

<!--

  NIGHTMARE - 0,
	MAGIC_BEANS - 1,
	DREAM - 2

-->

<level type="1">
  <meta score="0" buttonPrice="10"></meta>
  <bear maxHealth="100" startPosition="300" velocity="8" damage="11" criticalDamage="20" defaultAmmo="100" />

  <!--OT_CLOUD = 0,
  OT_SPIKE_NIGHTMARE_LARGE = 1,
  OT_SPIKE_NIGHTMARE_MEDIUM = 2,
  OT_SPIKE_NIGHTMARE_SMALL = 3,
  OT_BEAN_A = 4,
  OT_BEAN_B = 5,
  OT_BEAN_C = 6,
  OT_BEAN_D = 7,
  OT_BEAN_E = 8-->

  <!--
  MAGIC BEAN LEVEL MARGIN
  Since the beanstalks are made in such a way that those can be only placed on the side of the screen, here are the positioning
  coordinates for them:
  
  OT_BEAN_A: 269.5 (Left) 498.5 (Right, with 3.14 rotation)
  OT_BEAN_B: 128.5 (left) 638.5 (Right, with 3.14 rotation)
  OT_BEAN_C: 172 (left) 596 (Right, with 3.14 rotation)
  OT_BEAN_D: 188.5 (left) 579.5 (Right, with 3.14 rotation)
  OT_BEAN_E: 206.5 (left) 561.5 (Right, with 3.14 rotation)
  -->

  <obstacles>

    <obstacle type="1" x="119" y="1000" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="2" x="546" y="1600" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="2" x="222" y="2200" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="3" x="534.5" y="2800" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="5" x="638.5" y="3400" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="5" x="128.5" y="3800" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="1" x="119" y="4400" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="2" x="546" y="5000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="2" x="222" y="5600" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="3" x="534.5" y="6100" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="8" x="206.5" y="6800" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="5" x="128.5" y="7300" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="2" x="546" y="7800" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="7" x="579.5" y="8300" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="8" x="206.5" y="8800" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="8" x="206.5" y="10400" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="4" x="269.5" y="11000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="7" x="579.5" y="11600" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="8" x="206.5" y="12000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="2" x="546" y="12500" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="8" x="206.5" y="13000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="2" x="222" y="13400" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="5" x="128.5" y="13600" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="6" x="172" y="14000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="2" x="546" y="14400" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="7" x="579.5" y="14800" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="1" x="119" y="15200" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="2" x="546" y="15600" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="2" x="222" y="16000" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="3" x="534.5" y="16400" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="4" x="269.5" y="17000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="8" x="206.5" y="17700" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="2" x="546" y="18200" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="5" x="128.5" y="18600" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="6" x="172" y="19100" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="2" x="546" y="19600" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="7" x="579.5" y="20000" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="2" x="546" y="26000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="2" x="222" y="26800" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="3" x="534.5" y="27600" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="4" x="269.5" y="28200" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="8" x="206.5" y="29000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="2" x="546" y="29700" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="5" x="128.5" y="30300" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="6" x="172" y="31000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="2" x="546" y="31800" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="7" x="579.5" y="32600" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="8" x="206.5" y="33300" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="2" x="546" y="33900" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="5" x="128.5" y="34600" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="6" x="172" y="35400" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="2" x="546" y="36000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="5" x="128.5" y="36900" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="6" x="172" y="37700" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="5" x="128.5" y="38300" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="6" x="172" y="39000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="2" x="546" y="39900" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="7" x="579.5" y="40600" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
  </obstacles>

  <!--
  
  MT_NIGHTMARE_A = 0,
	MT_NIGHTMARE_B = 1,
	MT_NIGHTMARE_C = 2,
	MT_MAGICBEAN_A = 3,
	MT_MAGICBEAN_B = 4,
	MT_MAGICBEAN_C = 5,
	MT_CANDYLAND_A = 6,
	MT_CANDYLAND_B = 7,
	MT_CANDYLAND_C = 8,
	MT_CANDYLAND_D = 9,
	MT_CANDYLAND_E = 10
  
  -->

  <monsters>
    <monster lifetime="3000" scale=".2" velocityX="2" velocityY="2" type="0" x="460" y="3000" maxHealth="100" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3000" scale=".2" velocityX="2" velocityY="2" type="1" x="460" y="7000" maxHealth="400" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3000" scale=".2" velocityX="2" velocityY="2" type="2" x="460" y="11000" maxHealth="100" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3000" scale=".2" velocityX="2" velocityY="2" type="3" x="460" y="15000" maxHealth="100" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3000" scale=".2" velocityX="2" velocityY="2" type="4" x="460" y="19000" maxHealth="100" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3000" scale=".2" velocityX="2" velocityY="2" type="5" x="460" y="23000" maxHealth="100" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3000" scale=".2" velocityX="2" velocityY="2" type="6" x="460" y="27000" maxHealth="100" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3000" scale=".2" velocityX="2" velocityY="2" type="7" x="460" y="31000" maxHealth="100" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3000" scale=".2" velocityX="2" velocityY="2" type="8" x="460" y="35000" maxHealth="100" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3000" scale=".2" velocityX="2" velocityY="2" type="9" x="460" y="39000" maxHealth="100" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="4000" scale=".4" velocityX="3" velocityY="2" type="10" x="460" y="42200" maxHealth="340" bonus="100" lives="0" damage="18" criticalDamage="8" defaultAmmo="50" />
  </monsters>


  <buttons>
    <button x="560" y="1000" />
    <button x="560" y="1060" />
    <button x="560" y="1120" />
    <button x="560" y="1180" />
    <button x="560" y="1240" />
    <button x="560" y="1300" />

    <button x="160" y="1600" />
    <button x="160" y="1660" />
    <button x="160" y="1720" />
    <button x="160" y="1780" />
    <button x="160" y="1840" />
    <button x="160" y="1900" />

    <button x="560" y="2200" />
    <button x="560" y="2260" />
    <button x="560" y="2320" />
    <button x="560" y="2380" />

    <button x="160" y="2600" />
    <button x="160" y="2660" />
    <button x="160" y="2720" />
    <button x="160" y="2780" />
    <button x="160" y="2840" />
    <button x="160" y="2900" />

    <button x="160" y="3000" />
    <button x="160" y="3060" />
    <button x="160" y="3120" />
    <button x="160" y="3180" />
    <button x="160" y="3240" />
    <button x="160" y="3300" />

    <button x="560" y="4000" />
    <button x="560" y="4060" />
    <button x="560" y="4120" />
    <button x="560" y="4180" />
    <button x="560" y="4240" />
    <button x="560" y="4300" />
    <button x="560" y="4360" />
    <button x="560" y="4420" />

    <button x="160" y="4800" />
    <button x="160" y="4860" />
    <button x="160" y="4920" />
    <button x="160" y="4980" />
    <button x="160" y="5040" />
    <button x="160" y="5100" />

    <button x="560" y="5300" />
    <button x="560" y="5360" />
    <button x="560" y="5420" />
    <button x="560" y="5480" />
    <button x="560" y="5540" />
    <button x="560" y="5600" />
    <button x="560" y="5660" />
    <button x="560" y="5720" />

    <button x="560" y="6400" />
    <button x="500" y="6460" />
    <button x="560" y="6520" />
    <button x="500" y="6580" />
    <button x="560" y="6640" />
    <button x="500" y="6700" />
    <button x="560" y="6760" />
    <button x="500" y="6820" />
    <button x="560" y="6880" />
    <button x="500" y="6940" />
    <button x="560" y="7000" />
    <button x="500" y="7060" />
    <button x="560" y="7120" />
    <button x="500" y="7180" />
    <button x="560" y="7240" />
    <button x="500" y="7300" />
    <button x="560" y="7360" />
    <button x="500" y="7420" />

    <button x="160" y="8000" />
    <button x="100" y="8060" />
    <button x="160" y="8120" />
    <button x="100" y="8180" />
    <button x="160" y="8240" />
    <button x="100" y="8300" />
    <button x="160" y="8360" />

    <button x="560" y="9100" />
    <button x="500" y="9160" />
    <button x="560" y="9220" />
    <button x="500" y="9280" />
    <button x="560" y="9340" />
    <button x="500" y="9400" />
    <button x="560" y="9460" />
    <button x="500" y="9520" />

    <button x="560" y="10100" />
    <button x="500" y="10160" />
    <button x="560" y="10220" />
    <button x="500" y="10280" />
    <button x="560" y="10340" />
    <button x="500" y="10400" />
    <button x="560" y="10460" />
    <button x="500" y="10520" />

    <button x="560" y="13400" />
    <button x="500" y="13460" />
    <button x="560" y="13520" />
    <button x="500" y="13580" />
    <button x="560" y="13640" />
    <button x="500" y="13700" />
    <button x="560" y="13760" />
    <button x="500" y="13820" />
    <button x="560" y="13880" />
    <button x="500" y="13940" />
    <button x="560" y="14000" />
    <button x="500" y="14060" />
    <button x="560" y="14120" />

    <button x="100" y="15460" />
    <button x="160" y="15520" />
    <button x="100" y="15580" />
    <button x="160" y="15640" />
    <button x="100" y="15700" />

    <button x="360" y="20400" />
    <button x="300" y="20460" />
    <button x="360" y="20520" />
    <button x="300" y="20580" />
    <button x="360" y="20640" />
    <button x="300" y="20700" />
    <button x="360" y="20760" />
    <button x="300" y="20820" />
    <button x="360" y="20880" />
    <button x="300" y="20940" />
    <button x="360" y="21000" />
    <button x="300" y="21060" />
    <button x="360" y="21120" />
    <button x="300" y="21180" />
    <button x="360" y="21240" />
    <button x="300" y="21300" />
    <button x="360" y="21360" />
    <button x="300" y="21420" />
    <button x="360" y="21480" />
    <button x="300" y="21540" />
    <button x="360" y="21600" />
    <button x="300" y="21660" />
    <button x="360" y="21720" />
    <button x="300" y="21780" />
    <button x="360" y="21840" />
    <button x="300" y="21900" />
    <button x="360" y="21960" />
    <button x="300" y="22020" />
    <button x="360" y="22080" />
    <button x="300" y="22140" />
    <button x="360" y="22200" />
    <button x="300" y="22260" />
    <button x="360" y="22320" />
    <button x="300" y="22380" />
    <button x="360" y="22440" />
    <button x="300" y="22500" />
    <button x="360" y="22560" />
    <button x="300" y="22620" />
    <button x="360" y="22680" />
    <button x="300" y="22740" />
    <button x="360" y="22800" />
    <button x="300" y="22860" />
    <button x="360" y="22920" />
    <button x="300" y="22980" />
    <button x="360" y="23040" />
    <button x="300" y="23100" />
    <button x="360" y="23160" />
    <button x="300" y="23220" />
    <button x="360" y="23280" />

    <button x="360" y="23800" />
    <button x="300" y="23860" />
    <button x="360" y="23920" />
    <button x="300" y="23980" />
    <button x="360" y="24040" />
    <button x="300" y="24100" />
    <button x="360" y="24160" />
    <button x="300" y="24220" />
    <button x="360" y="24280" />

    <button x="300" y="24340" />
    <button x="360" y="24400" />
    <button x="300" y="24460" />
    <button x="360" y="24520" />
    <button x="300" y="24580" />
    <button x="360" y="24640" />
    <button x="300" y="24700" />
    <button x="360" y="24760" />
    <button x="300" y="24820" />
    <button x="360" y="24880" />
    <button x="300" y="24940" />
    <button x="360" y="25000" />
    <button x="300" y="25060" />
    <button x="360" y="25120" />
    <button x="300" y="25180" />
    <button x="360" y="25240" />
    <button x="300" y="25300" />
    <button x="360" y="25360" />
    <button x="300" y="25420" />
    <button x="360" y="25480" />
    <button x="300" y="25540" />
    <button x="360" y="25600" />
    <button x="300" y="25660" />
    <button x="360" y="25720" />

    <button x="560" y="26400" />
    <button x="500" y="26460" />
    <button x="560" y="26520" />
    <button x="500" y="26580" />
    <button x="560" y="26640" />
    <button x="500" y="26700" />
    <button x="560" y="26760" />
    <button x="500" y="26820" />
    <button x="560" y="26880" />
    <button x="500" y="26940" />
    <button x="560" y="27000" />
    <button x="500" y="27060" />
    <button x="560" y="27120" />

    <button x="160" y="27500" />
    <button x="160" y="27560" />
    <button x="160" y="27620" />
    <button x="160" y="27680" />
    <button x="160" y="27740" />
    <button x="160" y="27800" />

    <button x="560" y="28500" />
    <button x="500" y="28560" />
    <button x="560" y="28620" />
    <button x="500" y="28680" />
    <button x="560" y="28740" />
    <button x="500" y="28800" />
    <button x="560" y="28860" />
    <button x="500" y="28920" />
    <button x="560" y="28980" />
    <button x="500" y="29040" />
    <button x="560" y="29100" />
    <button x="500" y="29160" />
    <button x="560" y="29220" />

    <button x="160" y="29600" />
    <button x="160" y="29660" />
    <button x="160" y="29720" />
    <button x="160" y="29780" />
    <button x="160" y="29840" />
    <button x="160" y="29900" />

    <button x="560" y="30500" />
    <button x="500" y="30560" />
    <button x="560" y="30620" />
    <button x="500" y="30680" />
    <button x="560" y="30740" />
    <button x="500" y="30800" />
    <button x="560" y="30860" />
    <button x="500" y="30920" />
    <button x="560" y="30980" />
    <button x="500" y="31040" />
    <button x="560" y="31100" />
    <button x="500" y="31160" />
    <button x="560" y="31220" />

    <button x="560" y="32900" />
    <button x="500" y="32960" />
    <button x="560" y="33020" />
    <button x="500" y="33080" />
    <button x="560" y="33140" />
    <button x="500" y="33200" />
    <button x="560" y="33260" />
    <button x="500" y="33320" />
    <button x="560" y="33380" />
    <button x="500" y="33440" />
    <button x="560" y="33500" />
    <button x="500" y="33560" />
    <button x="560" y="33620" />
    
    <button x="160" y="35600" />
    <button x="160" y="35660" />
    <button x="160" y="35720" />
    <button x="160" y="35780" />
    <button x="160" y="35840" />
    <button x="160" y="35900" />

    <button x="160" y="36200" />
    <button x="160" y="36260" />
    <button x="160" y="36320" />
    <button x="160" y="36380" />
    <button x="160" y="36440" />
    <button x="160" y="36500" />

    <button x="560" y="36900" />
    <button x="500" y="36960" />
    <button x="560" y="37020" />
    <button x="500" y="37080" />
    <button x="560" y="37140" />
    <button x="500" y="37200" />
    <button x="560" y="37260" />
    <button x="500" y="37320" />
    <button x="560" y="37380" />
    <button x="500" y="37440" />
    <button x="560" y="37500" />
    <button x="500" y="37560" />
    <button x="560" y="37620" />

    <button x="560" y="37900" />
    <button x="500" y="37960" />
    <button x="560" y="38020" />
    <button x="500" y="38080" />
    <button x="560" y="38140" />
    <button x="500" y="38200" />
    <button x="560" y="38260" />
    <button x="500" y="38320" />
    <button x="560" y="38380" />
    <button x="500" y="38440" />
    <button x="560" y="38500" />
    <button x="500" y="38560" />
    <button x="560" y="38620" />
  </buttons>
  <!--
  
  Powerup Categories:
  1 - Good
  0 - Bad
  
  Powerup Types:
  HEALTH = 0,
  HELMET = 1,
  PARACHUTE = 2,
  BUBBLE = 3,
  CAPE = 4,
  AXE = 5,
  BOOMERANG = 6,
  HAMMER = 7,
  KNIFE = 8,
  PLASMA_BALL = 9
  
  -->
  <powerups>
    <powerup category="1" type="3" x="600" y="11000" effect="999" lifespan="10"></powerup>
    <powerup category="1" type="4" x="300" y="20200" effect="3" lifespan="4"></powerup>
    <powerup category="1" type="0" x="300" y="23500" effect="3" lifespan="4"></powerup>
    <powerup category="1" type="5" x="560" y="28000" effect="20" lifespan="4"></powerup>
    <powerup category="1" type="0" x="300" y="35000" effect="3" lifespan="4"></powerup>
    <powerup category="1" type="3" x="300" y="42200" effect="3" lifespan="5"></powerup>
  </powerups>
</level>